const fp = require('lodash/fp')

const obj = { name: 'Tony' }
const result = fp.set('name', 'stark', obj)
const result2 = fp.set('age', 42, obj);
console.log(obj)
console.log(result)
console.log(result2)
